//
//  KABThemeMallCRView.m
//  kabu
//
//  Created by XiangDongMBP on 2017/2/17.
//  Copyright © 2017年 East. All rights reserved.
//

#import "KABThemeMallCRView.h"
#import "KABModel.h"
#import "UIColor+XDHex.h"

@implementation KABThemeMallCRView

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)configViewWithItem:(KABProductProItem *)item {
    self.titleLabel.text = item.property_content;
    self.titleLabel.font = [UIFont systemFontOfSize:16.0];
    self.topLineView.hidden = NO;
    self.bottomLineView.hidden = YES;
}

@end


@implementation KABThemeMallCRView (HomepageAlbum)
- (void)configViewWithPhotoItem:(KABMinePhotoItem *)item {
    self.topLineView.hidden = YES;
    self.bottomLineView.hidden = YES;
    self.titleLabel.font = [UIFont systemFontOfSize:14.0];
    self.titleLabel.text = [item.publish_time substringWithRange:NSMakeRange(0, 7)];
    self.backgroundColor = [UIColor xd_colorWithHex:0xF0F0F0];
}
@end
